package com.wwtech.epp.entity.multi;

import com.chad.library.adapter.base.entity.AbstractExpandableItem;
import com.chad.library.adapter.base.entity.MultiItemEntity;
import com.wwtech.epp.ui.adapter.main.ContactAdapter;

/**
 * Created by hu on 2017/9/11.
 */

public class ParentItem extends AbstractExpandableItem<PersonItem> implements MultiItemEntity {
    public String title;
    public String subTitle;
    public String parentType;
    public String avatar;

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public String getSubTitle() {
        return subTitle;
    }

    public ParentItem(String title, String subTitle, String parentType, String avatar) {
        this.subTitle = subTitle;

        this.title = title;
        this.parentType = parentType;
    }

    public void setTitle(String title) {
        this.title = title;
    }
    public void setSubTitle(String subTitle) {
        this.subTitle = subTitle;
    }

    @Override
    public int getItemType() {
        return ContactAdapter.TYPE_PARENT;
    }

    @Override
    public int getLevel() {
        return 0;
    }
}
